Skip to main content

Update Business Locations

PATCH /api/v1/businesses/{businessId}/single/other/locations

Description​

Update locations for a specific business.

Path Parameters​

NameTypeDescription
businessIdstringThe ID of the business (path)

Request Body​

  • Content Type: application/json
{
"userId": "string",
"actionBy": "string",
"businessId": "string",
"locations": [
{
"branchName": "string",
"stateCode": "string",
"cityName": "string",
"latitude": 0,
"longitude": 0,
"extraLocationPrice": 0,
"address": "string"
}
]
}

Response Code: 200 - OK​

Description

Locations updated successfully.

Headers​

Content-TypeValue
apiKey{{apiKey}}

Body​

{
"userId": "user123",
"actionBy": "admin",
"businessId": "biz456",
"locations": [
{
"branchName": "Main Branch",
"stateCode": "CA",
"cityName": "San Francisco",
"latitude": 37.7749,
"longitude": -122.4194,
"extraLocationPrice": 100,
"address": "123 Market St"
}
]
}

🔑 Authentication bearer​

ParamValueType
token{{accessCode}}string

LANGUAGE

AUTHORIZATION

Bearer

CURL REQUEST


curl --request PATCH \ 
--url /api/v1/businesses/{businessId}/single/other/locations \
--header 'accept: application/json' \
--header 'content-type: application/json'

RESPONSE


Click Try It! to start a request and see the response here!